#include <time.h>

#import <UIKit/UIView.h>
#import <GraphicsServices/GraphicsServices.h>

@interface MouseView: UIView
{
	id mouseDelegate;
	CGPoint prevPoint;
	
	CGPoint gesStart1, gesStart2, gesEnd1, gesEnd2;
	CGPoint prevP1, prevP2;
	time_t gesStartTime, gesEndTime;
}

- (id)initWithFrame: (CGRect)frame;

- (void)setMouseDelegate: (id)delegate;

- (BOOL)canHandleSwipes;
- (BOOL)canHandleGestures;

- (void)gestureStarted: (GSEventRef)event;
- (void)gestureEnded: (GSEventRef)event;
- (void)gestureChanged: (GSEventRef)event;

- (int)swipe: (int)orientation withEvent: (GSEventRef)event;

- (void)view: (UIView *)view handleTapWithCount:(int)count event: (GSEventRef)event fingerCount: (int)finger;

- (void)mouseDragged: (GSEventRef)event;
- (void)mouseDown: (GSEventRef)event;
- (void)mouseUp: (GSEventRef)event;

@end
